package com.woniuxy.car.boss.app.apiImpl;

import com.woniuxy.car.boss.client.OrderBossClient;
import com.woniuxy.car.common.resultcode.Result;
import com.woniuxy.car.order.client.OrderManageClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Slf4j
public class OrderBossApilmpl implements OrderBossClient {
    @Resource
    private OrderManageClient orderManageClient;

    @Override
    public Result setOrderShipped(String orderNum, String shipNum) {
        log.info("请求参数：{}，{}",orderNum,shipNum);

        return orderManageClient.setOrderShipped(orderNum,shipNum);
    }

    @Override
    public Result setOrderSign(String orderNum) {
        log.info("请求参数：{}",orderNum);
        return orderManageClient.setOrderSign(orderNum);
    }

    @Override
    public Result setOrderFinished(String orderNum, Integer userId) {
        log.info("请求参数：{}，{}",orderNum,userId);
        return orderManageClient.setOrderFinished(orderNum,userId);
    }


}
